package com.wang.pages;

import javax.inject.Inject;

import org.apache.tapestry5.annotations.Import;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.services.javascript.JavaScriptSupport;

@Import(library = { "context:assets/js/jquery-1.7.1.min.js", "context:assets/js/JavaScript.js", })
public class JavaScript {
	@Property
	@SuppressWarnings("unused")
	private String firstName;

	@Inject
	private JavaScriptSupport javaScriptSupport;

	public void setupRender() {

		javaScriptSupport.addScript("new ColorSwitcher();");
	}
}
